package com.dime.basic.api;

import com.dime.basic.api.domain.DimeBaseitemextend;
import com.dime.basic.api.factory.RemoteItemextendFallbackFactory;
import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;



@FeignClient(contextId = "remoteItemextendService", value = ServiceNameConstants.DM_BASIC, fallbackFactory = RemoteItemextendFallbackFactory.class)
public interface RemoteItemextendService  {

    @PostMapping("/baseitemextend/info/itemextend")
    public R<DimeBaseitemextend> getItemextendByBaseItemId(@RequestBody DimeBaseitemextend dimeBaseitemextend, @RequestHeader(SecurityConstants.FROM_SOURCE)  String source);

}
